package at.fpmedv.eclipse.helma.ui.skinassist;

import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.contentassist.ContentAssistant;
import org.eclipse.jface.text.contentassist.IContentAssistant;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration;

public class StructuredTextViewerConfigurationSkin extends StructuredTextViewerConfiguration {

	@Override
	public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
		ContentAssistant assistant= new ContentAssistant();
		assistant.setContentAssistProcessor(new SkinAssistProcessor(), IDocument.DEFAULT_CONTENT_TYPE);
		assistant.setAutoActivationDelay(500);
		//org.eclipse.wst.html.ui.StructuredTextViewerConfigurationHTML
		return assistant;
	}

}
